package com.dy.nygl.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.dy.nygl.pojo.Equipment;

@Component("equipmentDao")
public interface EquipmentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Equipment record);

    int insertSelective(Equipment record);

    Equipment selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Equipment record);

    int updateByPrimaryKey(Equipment record);
    
    List<Equipment> selectAll();
    
    List<Equipment> selectByEquipId(@Param("equipId")String equipId);
    
    List<Equipment> selectByEquipName(@Param("equipName")String equipName);
}